<div class="form">
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>
    <?php echo $form->hiddenField($model, 'board_'); ?>
    
<?php echo $form->alert($model, array(
    'errorMessageHtmlOptions'=>array('class'=>'alert alert-danger'), 
    'flashHtmlOptions'=>array('class'=>'alert alert-'),
)); ?>

    <?php if (!$model->isNewRecord): ?>	
        <div class="row">
            <?php echo $form->labelEx($model, 'id_'); ?>
            <?php echo $model->id; ?>
        </div>

    <?php endif; ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'category_'); ?>
        <?php echo $form->dropDownList($model, 'category_', $model->categoryOption, array('prompt' => Lang::t('item.lbl.select.category'))); ?>
        <?php echo $form->error($model, 'category'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'color_'); ?>
        <?php echo $form->colorDropDownList($model, 'color_', $model->colorOption, array('prompt' => Lang::t('item.lbl.select.color'))); ?>
        <?php echo $form->error($model, 'color_'); ?>
    </div>
    
    <hr />

    <div class="row">
        <?php echo $form->labelEx($model, 'title_'); ?>
        <?php echo $form->textField($model, 'title_', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'title_'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'description_'); ?>
        <?php echo $form->editorTextArea($model, 'description_'); ?>
        <?php echo $form->error($model, 'description_'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'tags_'); ?>
        <?php echo $form->textField($model, 'tags_', array('size' => 60)); ?>
        <?php echo $form->error($model, 'tags_'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'publish_'); ?>
        <?php echo $form->checkBox($model, 'publish_'); ?>
        <?php echo $form->error($model, 'publish_'); ?>
    </div>

    <hr />

    <div class="row">
        <?php echo $form->labelEx($model, 'sefUrl_'); ?>
        <?php echo $form->textField($model, 'sefUrl_', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'sefUrl_'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'metaTitle_'); ?>
        <?php echo $form->textField($model, 'metaTitle_', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'metaTitle_'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'metaDescription_'); ?>
        <?php echo $form->textArea($model, 'metaDescription_', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'metaDescription_'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'metaKeywords_'); ?>
        <?php echo $form->textField($model, 'metaKeywords_', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'metaKeywords_'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? Lang::t('merchant.item.create.btn.submit') : Lang::t('merchant.item.update.btn.submit')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->